package cm.mefobe.android.telecomcost.entities;

public class Week extends DayRange{
	private int _weekOfYear;
	private Month _monthOfYear;

	public Week() {
	}
	
	public Week(int weekOfYear,int monthOfYear) {
		_weekOfYear = weekOfYear;
		_monthOfYear = new Month(monthOfYear);
	}

	public Week(Day firstDayOfWeek1, Day lastDayOfWeek1) {
		super(firstDayOfWeek1,lastDayOfWeek1);
	}

	public int getWeekOfYear() {
		return getFirstDay().getWeekOfYear();
	}

	public Month getMonth() {
		return _monthOfYear;
	}

	public void setMonth(int _monthOfYear) {
		this._monthOfYear = new Month(_monthOfYear);
	}
	
	public void setMonth(Month _monthOfYear) {
		this._monthOfYear = _monthOfYear;
	}
	
	public String getMonthName()
	{
		return _monthOfYear.getName();
	}
	
	@Override
	public String getName()
	{
		return "Week " + getWeekOfYear();
	}
	
	@Override
	public String toString() {
		return getName() + " - " + getDayRangeLabel();
	}
}